import { createApp } from 'vue'
import { createPinia } from 'pinia'

import App from './App.vue'
import router from './router'
import piniaPersist from 'pinia-plugin-persist'
import i18n from './i18n'

// 注册 @element-plus/icons-vue
import { setupIcon } from '@/utils'

const app = createApp(App)
const pinia = createPinia()
// pinia 持久化
pinia.use(piniaPersist)

setupIcon(app)

app.use(router)
app.use(pinia)
app.use(i18n)

app.mount('#app')
